import request from "@/utils/request";
export default {
    getCourseInfoId(id) {
        return request({
            url: `/api/edu/course/course-info/${id}`,
            method: 'get'
        })
    },
    getAllCourse(course) {
        return request({
            url: `/api/edu/course/course-info`,
            method: 'post',
            data:course
        })
    },
    getCourseInfoPay(id){
      return request({
        url:`/api/edu/course/coursePay/${id}`,
        method:'get'
      })
    },
    getTopCourse(){
        return request({
            url:`/api/edu/course/topCourse`,
            method:'get'
        })
    },
    getCoursDescription(courseId){
        return request({
            url:`/api/edu/course-description/get-info/${courseId}`,
            method:'get'
        })
    }
}